<?php

 
class PostWrapper
{
    private static $instance;

    private function __construct()
    {
        foreach($_POST as $key => $value)
        {
            $this->$key = $value;
        }
    }

    static function getInstance()
    {
        if (is_null(self::$instance))
            self::$instance = new PostWrapper();
        return self::$instance;
    }
}